
import java.util.*;
public class text567 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别

            int a = 0;
            int b = 2;


            String s="0123456789ABCDEF";
            boolean flag=true;
            if(a<0)
            {
                flag=false;
            }
            StringBuffer buffer=new StringBuffer();
            while(a!=0)
            {
                buffer.append(s.charAt(a%b));
                a=a/b;

            }
            if(flag==false)
            {
                buffer.append('-');

            }
            System.out.println(buffer);
        }


    }








